package org.ly817.falsework.cloud.admin.model;

import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author LuoYu
 * @date 2018/09/15 16:57
 * <p>
 * Description:
 * 用户表映射类
 */
public class User implements Serializable {
    @Id
    private Long id;
    private String userName;
    private String phoneNumber;
    private String nickName;
    private String password;
    private Long deptId;
    private String sts;
    private Timestamp createTime;
    private Long createId;

    public User() {
    }

    public User(Long id) {
        this.id = id;
    }

    public User(String userName) {
        this.userName = userName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getSts() {
        return sts;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", nickName='" + nickName + '\'' +
                ", password='" + password + '\'' +
                ", deptId=" + deptId +
                ", sts='" + sts + '\'' +
                ", createTime=" + createTime +
                ", createId=" + createId +
                '}';
    }
}
